<template>
	<view>
		<an-nav-bar :title="title"></an-nav-bar>
		<view style="padding: 20rpx;">
			<rich-text v-html="text"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "",
				text:'',
				type:''
			}
		},
		onLoad(option) {
			this.title = option.title;
			this.type = option.type;
		},
		onShow() {
			this.getProtocol();
		},
		methods: {
			getProtocol(){
				this.$http.get(
					`/appNoAuth/config/configProtocol/getDetail`,{'type':this.type}
				).then(r => {
					this.text = r.data.protocolContent
				})
			}
		}
	}
</script>

<style>

</style>
